package com.itttq.gshop.domain.to;

import java.util.List;
/**
 * 返回给页面展示的对象，此处只返回消息
 * 
 * @createTime: Mar 31, 2014 6:02:19 PM
 * @author: <a href="mailto:gaoxvguo060@haopinfeng.com">高绪国</a>
 * @version: 0.1
 * @changesSum:
 * 
 */
public class ResultPageTo<T> extends ResultTo{
	private static final long serialVersionUID = 6061243020733722044L;
	
	// 起始值，0开始
	private int start = 0;
	// 每页数据量，默认为10
	private int size = 10;
	// 数据总量，查询结果得知
	private long total = 0;
	/** 结果数据 */
	private List<T> data;
	
	public ResultPageTo(int start, int size, int total, List<T> data) {
		super();
		setSize(size);
		setStart(start);
		setTotal(total);
		setData(data);
	}
	
	public List<T> getData() {
		return data;
	}
	public void setData(List<T> data) {
		this.data = data;
	}
	
	public int getStart() {
		return start;
	}
	public void setStart(int start) {
		this.start = start;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}
	
}
